

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class TicketAllDetails
{
System.Int64 _TicketID =-1;
public System.Int64 TicketID
{
get { return _TicketID;}
set { _TicketID = value;}
}
System.Int64? _OwnerID =null;
public System.Int64? OwnerID
{
get { return _OwnerID;}
set { _OwnerID = value;}
}
System.String _Badge =null;
public System.String Badge
{
get { return _Badge;}
set { _Badge = value;}
}
System.String _PersonNameEN =null;
public System.String PersonNameEN
{
get { return _PersonNameEN;}
set { _PersonNameEN = value;}
}
System.String _PersonNameAR =null;
public System.String PersonNameAR
{
get { return _PersonNameAR;}
set { _PersonNameAR = value;}
}
System.Int64? _RequestTypeID =null;
public System.Int64? RequestTypeID
{
get { return _RequestTypeID;}
set { _RequestTypeID = value;}
}
System.String _RequestTypeAR =null;
public System.String RequestTypeAR
{
get { return _RequestTypeAR;}
set { _RequestTypeAR = value;}
}
System.String _RequestTypeEN =null;
public System.String RequestTypeEN
{
get { return _RequestTypeEN;}
set { _RequestTypeEN = value;}
}
System.String _Details ="";
public System.String Details
{
get { return _Details;}
set { _Details = value;}
}
System.Int64? _StatusID =null;
public System.Int64? StatusID
{
get { return _StatusID;}
set { _StatusID = value;}
}
System.String _StatusAR =null;
public System.String StatusAR
{
get { return _StatusAR;}
set { _StatusAR = value;}
}
System.String _StatusEN =null;
public System.String StatusEN
{
get { return _StatusEN;}
set { _StatusEN = value;}
}
System.Int64? _OperatorID =null;
public System.Int64? OperatorID
{
get { return _OperatorID;}
set { _OperatorID = value;}
}
System.String _AssignedToAR =null;
public System.String AssignedToAR
{
get { return _AssignedToAR;}
set { _AssignedToAR = value;}
}
System.String _AssignedToEN =null;
public System.String AssignedToEN
{
get { return _AssignedToEN;}
set { _AssignedToEN = value;}
}
System.Int64? _PriorityID =null;
public System.Int64? PriorityID
{
get { return _PriorityID;}
set { _PriorityID = value;}
}
System.String _PriorityAR =null;
public System.String PriorityAR
{
get { return _PriorityAR;}
set { _PriorityAR = value;}
}
System.String _PriorityEN =null;
public System.String PriorityEN
{
get { return _PriorityEN;}
set { _PriorityEN = value;}
}
System.Int64? _TicketDuration =null;
public System.Int64? TicketDuration
{
get { return _TicketDuration;}
set { _TicketDuration = value;}
}
System.DateTime _CreateTime =DateTime.Now;
public System.DateTime CreateTime
{
get { return _CreateTime;}
set { _CreateTime = value;}
}
System.DateTime _ModifyTime =DateTime.Now;
public System.DateTime ModifyTime
{
get { return _ModifyTime;}
set { _ModifyTime = value;}
}
System.String _Note ="";
public System.String Note
{
get { return _Note;}
set { _Note = value;}
}
System.Int64? _AreaID =null;
public System.Int64? AreaID
{
get { return _AreaID;}
set { _AreaID = value;}
}
System.String _AreaAR =null;
public System.String AreaAR
{
get { return _AreaAR;}
set { _AreaAR = value;}
}
System.String _AreaEN =null;
public System.String AreaEN
{
get { return _AreaEN;}
set { _AreaEN = value;}
}
System.Int32? _IsBadSituation =null;
public System.Int32? IsBadSituation
{
get { return _IsBadSituation;}
set { _IsBadSituation = value;}
}
public TicketAllDetails()
{
}
public TicketAllDetails(System.Int64 __TicketID,System.Int64? __OwnerID,System.String __Badge,System.String __PersonNameEN,System.String __PersonNameAR,System.Int64? __RequestTypeID,System.String __RequestTypeAR,System.String __RequestTypeEN,System.String __Details,System.Int64? __StatusID,System.String __StatusAR,System.String __StatusEN,System.Int64? __OperatorID,System.String __AssignedToAR,System.String __AssignedToEN,System.Int64? __PriorityID,System.String __PriorityAR,System.String __PriorityEN,System.Int64? __TicketDuration,System.DateTime __CreateTime,System.DateTime __ModifyTime,System.String __Note,System.Int64? __AreaID,System.String __AreaAR,System.String __AreaEN,System.Int32? __IsBadSituation)
{
_TicketID = __TicketID;
_OwnerID = __OwnerID;
_Badge = __Badge;
_PersonNameEN = __PersonNameEN;
_PersonNameAR = __PersonNameAR;
_RequestTypeID = __RequestTypeID;
_RequestTypeAR = __RequestTypeAR;
_RequestTypeEN = __RequestTypeEN;
_Details = __Details;
_StatusID = __StatusID;
_StatusAR = __StatusAR;
_StatusEN = __StatusEN;
_OperatorID = __OperatorID;
_AssignedToAR = __AssignedToAR;
_AssignedToEN = __AssignedToEN;
_PriorityID = __PriorityID;
_PriorityAR = __PriorityAR;
_PriorityEN = __PriorityEN;
_TicketDuration = __TicketDuration;
_CreateTime = __CreateTime;
_ModifyTime = __ModifyTime;
_Note = __Note;
_AreaID = __AreaID;
_AreaAR = __AreaAR;
_AreaEN = __AreaEN;
_IsBadSituation = __IsBadSituation;
}


             public override bool Equals(object obj)
         {
             if (obj is TicketAllDetails)
             {
                 TicketAllDetails newObj = (TicketAllDetails)obj;

                 if (newObj.TicketID == this.TicketID && newObj.OwnerID == this.OwnerID && newObj.Badge == this.Badge && newObj.PersonNameEN == this.PersonNameEN && newObj.PersonNameAR == this.PersonNameAR && newObj.RequestTypeID == this.RequestTypeID && newObj.RequestTypeAR == this.RequestTypeAR && newObj.RequestTypeEN == this.RequestTypeEN && newObj.Details == this.Details && newObj.StatusID == this.StatusID && newObj.StatusAR == this.StatusAR && newObj.StatusEN == this.StatusEN && newObj.OperatorID == this.OperatorID && newObj.AssignedToAR == this.AssignedToAR && newObj.AssignedToEN == this.AssignedToEN && newObj.PriorityID == this.PriorityID && newObj.PriorityAR == this.PriorityAR && newObj.PriorityEN == this.PriorityEN && newObj.TicketDuration == this.TicketDuration && newObj.CreateTime == this.CreateTime && newObj.ModifyTime == this.ModifyTime && newObj.Note == this.Note && newObj.AreaID == this.AreaID && newObj.AreaAR == this.AreaAR && newObj.AreaEN == this.AreaEN && newObj.IsBadSituation == this.IsBadSituation )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
